<?php
class Accountmanager_Data_Delete implements Accountmanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        //var_dump($variables['post']);
        //die();
        $variables['query'] = "UPDATE account_settings SET status_name='Nieaktywny' WHERE username='".$variables['get']['name']."';";
        //echo $variables['query'];
        //die();
        return $this->core_controller_dataoperation->main($variables);
    }
    
}
